package com.weilive.core.session;

import org.apache.commons.lang.builder.ToStringBuilder;

public class SessionAccount {
	public long userId;
	public String account;
	public String sessionId;
	public String token;

	public boolean isLogin() {
		return this.userId != 0;
	}

	public long getUserId() {
		return this.userId;
	}

	public void setUserId(long userId) {
		this.userId = userId;
	}

	public String getAccount() {
		return account;
	}

	public void setAccount(String account) {
		this.account = account;
	}

	public String getSessionId() {
		return sessionId;
	}

	public void setSessionId(String sessionId) {
		this.sessionId = sessionId;
	}

	public String getToken() {
		return token;
	}

	public void setToken(String token) {
		this.token = token;
	}

	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
}
